﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUI
{
    public partial class ManHinhChinh : Form
    {
        public ManHinhChinh()
        {
            InitializeComponent();
        }

        private void nhậpThôngTinTuyếnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                if (form.Name.Equals("QuanLyTuyen"))
                {
                    form.Close();
                }
            }
            QuanLyTuyen frm = new QuanLyTuyen();
            frm.MdiParent = this;
            frm.Show();
        }

        private void traCứuKháchSạnĐịaĐiểmThamQuanTheoTuyếnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                if (form.Name.Equals("TraCuuTuyen"))
                {
                    form.Close();
                }
            }
            TraCuuDiaDiemThamQuan_KhachSanTheoTuyen frm = new TraCuuDiaDiemThamQuan_KhachSanTheoTuyen();
            frm.MdiParent = this;
            frm.Show();
        }

        private void thốngKêSốLượngHànhKháchTheoTuyếnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                if (form.Name.Equals("ThongKeTheoTuyen"))
                {
                    form.Close();
                }
            }
            ThongKeSoLuongHanhKhachTheoTuyen frm = new ThongKeSoLuongHanhKhachTheoTuyen();
            frm.MdiParent = this;
            frm.Show();
        }

        private void nhậpKháchSạnVàĐịaĐiểmThamQuanTheoThànhPhốToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                if (form.Name.Equals("QuanLyKhachSan_DiemThamQuanCuaTuyen"))
                {
                    form.Close();
                }
            }
            QuanLyKhachSan_DiemThamQuanCuaTuyen frm = new QuanLyKhachSan_DiemThamQuanCuaTuyen();
            frm.MdiParent = this;
            frm.Show();
        }

        private void quảnLýĐặtChổToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QuanLiPhieuDatCho frm = new QuanLiPhieuDatCho();
            frm.MdiParent = this;
            frm.Show();
        }
    }
}
